home *** CD-ROM | disk | FTP | other *** search
- Path: ns.mad.servicom.es!news
- From: ores@mad.servicom.es (Orestes Sanchez)
- Newsgroups: comp.lang.c++
- Subject: Re: What is : void class::method(TYPE* type) throw()
- Date: Sat, 30 Mar 1996 17:43:07 GMT
- Organization: SERVICOM
- Message-ID: <4jjsdm$q00@ns.mad.servicom.es>
- References: <4j5jfc$hk3@doc.zippo.com>
- NNTP-Posting-Host: ppp_mad_151.inf.servicom.es
- X-Newsreader: Forte Free Agent 1.0.82
-
- Gilad Brand wrote:
-
- >I read an article in the "C++ Report" which carried the name: "C++ Exception -
- >Handling in Multithreaded Programs" / by Sean Leary.
- >In the article I saw some examples of code which syntax was unfamiliar to me.
- >The formal declaration of a method was written like this:
-
- >void EHThread::terminate(EHThread* self) throw()
- >{
- > ...
- >}
-
- >This syntax returned in other places in the article.
- >I wonder if there is anyone who is familiar with this syntax, and can tell
- >me what is its meaning ?
-
- void EHThread::terminate(EHThread* self) throw()
- I think your problem is with the "throw" keyword. It is a keyword in
- C++ and it allows exceptions to be "thrown" in that function.
- Exceptions are a powerful technic to handle exceptional situations in
- your code. They are more or less like a hardware exception, but with
- the hability that a programmer can throw one.
- I recomend you a book on C++ such as "The Annotated C++ Reference
- Manual" of Margaret Ellis and Bjarne Stroupstroup.
-
- Orestes
-
- >Thanks,
-
-
-
-